import { defineAmisPlugin, getBaseFormItem, getInputTpl } from '../../base/util';
import component from './fc';
import type { IProps } from './interface';

export default defineAmisPlugin<IProps>(() => {
    return {
        component,
        options: getBaseFormItem({
            type: 'switch', order: -6985, name: '开关', icon: 'SwapOutlined',xtype:'Switch',
            tpls: [
                {
                    type: 'ae-switch-more',
                    bulk: true,
                    mode: 'normal',
                    label: '填充文本',
                    formType: 'extend',
                    form: {
                        body: [
                            getInputTpl('checkedChildren', { label: '开启时' }),
                            getInputTpl('unCheckedChildren', { label: '关闭时' })
                        ]
                    }
                }
            ]
        })
    };
});
